package com.itheima.common;

/**
 * @author ChenJunJie
 * @date 2022/6/24 10:29
 * 未经过授权异常类
 */
public class UnAuthorizedException extends RuntimeException {
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public UnAuthorizedException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
